package com.ruoyi.crm.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.crm.domain.ProductNeed;
import com.ruoyi.crm.domain.ProjectApprove;
import com.ruoyi.crm.service.IProjectApproveService;
import com.ruoyi.crm.service.Impl.ProductNeedServiceImpl;
import com.ruoyi.crm.service.Impl.ProjectApproveServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 *
 * 项目确认方式控制层
 * @author  dxy
 *
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/approve")
public class ProjectApproveController extends BaseController {
    private final ProjectApproveServiceImpl projectApproveService;

    /**
     *  项目确认方式列表
     */
    @GetMapping("/projectApprove")
    public R<List<ProjectApprove>> getProjectApproveList() {
        List<ProjectApprove> list=projectApproveService.selectProjectApproveList(new ProjectApprove());
        return R.ok(list);
    }

}
